﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LanHomepage.ViewModels;
using BusinessLogic;

namespace LanHomepage.Controllers
{
    public class KioskController : BaseController
    {
        private readonly IDatabaseHandler _databaseHandler;

        public KioskController(IDatabaseHandler databaseHandler)
        :base(databaseHandler)
        {
            _databaseHandler = databaseHandler;
        }

        public ActionResult Kiosk(KioskViewModel model)
        {
            model.Images = _databaseHandler.GetImagelist();

            return View(model);
        }
    }
}
